home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
BUSINESS
/
HOSTKEY1.ARJ
/
HOSTKEYS.DOC
< prev
next >
Wrap
Text File
|
1992-01-31
|
19KB
|
546 lines
HOSTKEYS
VERSION 1.0
Logical Business Systems, Inc.
Copyright 1991, 1992
15790 Dooley, Suite #105
Dallas, Texas 75244
NOTICE
This software product is provided "as is" with no guarantees
or warranties express or implied. Logical Business Systems, Inc.
accepts no liability for the use of or inability to use this
product, or any damages attributable thereto.
This software product is distributed as "shareware". You may
evaluate the product at no charge for 30 days and distribute
complete and unaltered copies to others. If you find HOSTKEYS
useful and wish to continue using HOSTKEYS, please print the
file register.doc and send $49.95 to:
Logical Business Systems, Inc.
15790 Dooley Suite #105
Dallas, Texas 75244
Once registered, you will:
Have access to free technical phone support.
Receive free product upgrades!
Be able to request enhancements and/or submit comments.
1-800-521-5904
1-214-239-2146
INTRODUCTION:
Welcome to HOSTKEYS, the 3270 automation program.
HOSTKEYS will save you time and effort controlling your 3270 terminal
sessions. HOSTKEYS automates mainframe 3270 terminal sessions by
processing user defined script files. HOSTKEYS works with all 3270
emulation products that support IBM compatible HLLAPI (High Level
Language Application Program Interface).
HOSTKEYS is a communication option of AUTO-PC, another product from
Logical Business Systems, Inc. AUTO-PC offers the most powerful
scheduling available for all your unattended PC processing needs.
AUTO-PC provides JOB scheduling for Batch Files, PC Programs, and
Keystroke Capture Sessions. With AUTO-PC, calls to HOSTKEYS can
be scheduled for unattended processing. See AUTO-PC.DOC.
For more information about AUTO-PC, call or write Logical Business
Systems, Inc. NOTE: AUTO-PC is not a shareware product.
Before executing HOSTKEYS be sure the 3270 emulation software and
HLLAPI are loaded, and a 3270 session is active.
Starting HOSTKEYS processing.
Format -> hostkeys parameter1 parameter2 (parameter3)
parameter1 = file name and extension of script file
parameter2 = required connection type ( P or L )
parameter3 = optional session id - default is the first
valid session found (this may be blank)
or
Format -> hostkeys /D
To Display System and Session(s) Status
NOTE: When using HOSTKEYS with a 3270 emulation product for the
first time, you should display the System and Session status
to obtain the session id(s) (short names).
NOTE: Use connection type "P" with 3270 emulation products that support
a concurrent DOS session.
Use connection type "L" with 3270 emulation products that do not
support a concurrent DOS session. Use the hotkey command "H:" to
get to the 3270 session if required.
See Technical Notes for more on connection type.
HOSTKEYS Script Commands:
Introduction: The following are the HOSTKEYS commands. The command
can be either lower or upper case. Following the
proper format is critical. Use your favorite editor
to create your script files.
--------------------------------------------------------------------
C: -> Check 3270 screen for a string.
Format: C:ROW,COLUMN,'STRING',TIMER,LABEL
ROW = The row on the screen.
COLUMN = The column on the screen.
STRING = The string to check for, must be in single quotes.
TIMER = OPTIONAL: How long to continuously check for string.
Value is in 1/2 seconds. If it is not supplied,
HOSTKEYS will check for the string indefinitly. A
value of 0 will check only one time.
LABEL = OPTIONAL: Where to branch to if the string is not found
and the timer expires. If timer is supplied then this
parameter is required.
NOTE: The first screen postion is Row 1, Column 1.
NOTE: The string is case sensitive, be sure to use the
appropriate case.
EXAMPLE: C:18,25,'OPTIONS',0,NOVTAM
Check the 3270 screen for the uppercase string 'OPTIONS'
at Row 18, Column 25, if not immediately found, then
branch to the label NOVTAM.
--------------------------------------------------------------------
G: -> GOTO LABEL
Format: G:LABEL
NOTE: The label must be defined with a "L:" command.
EXAMPLE: G:TRY_NEXT
--------------------------------------------------------------------
H: -> HOTKEY (Toggle between PC session and Host session)
Format: H:
NOTE: This is provided for 3270 emulation products that do NOT
provide a concurrent DOS session. Use this ONLY when
user interaction is required with the 3270 session.
EXAMPLE: H:
Hotkey between the HOST and PC sessions.
HOSTKEYS Script Commands: (CON'T)
--------------------------------------------------------------------
K: -> Send keystrokes to host.
Format: K:{ Keystrokes Go Here }
The following represent all special keystrokes:
$ALT_CUR = "ALTERNATE CURSOR"
$AT = "@"
$ATTN = "ATTENTION" ** an AID key mnemonic
$BACKSPACE = "BACKSPACE"
$BACKTAB = "BACKTAB"
$BLUE = "BLUE"
$B_W_TAB = "BACKWARD WORD TAB"
$CLEAR = "CLEAR"
$CUR_DOWN = "CURSOR DOWN"
$CUR_LEFT = "CURSOR LEFT"
$CUR_L_FAST = "CURSOR LEFT FAST"
$CUR_RIGHT = "CURSOR RIGHT"
$CUR_R_FAST = "CURSOR RIGHT FAST"
$CUR_SEL = "CURSOR SELECT" ** an AID key mnemonic
$CUR_UP = "CURSOR UP"
$DELETE = "DELETE"
$DUP = "DUP"
$ENTER = "ENTER"
$ERASE = "ERASE EOF"
$ERASE_IN = "ERASE INPUT"
$FLD_HIGH = "FIELD HIGHLIGHT"
$FLD_MARK = "FIELD MARK"
$F_W_TAB = "FORWARD WORD TAB"
$GREEN = "GREEN"
$HOME = "HOME"
$INSERT = "INSERT"
$JUMP = "JUMP to destination LT"
$NEW_LINE = "NEW LINE"
$PINK = "PINK"
$PRINT_SCR = "PRINT SCREEN"
$RED = "RED"
$RESET = "RESET"
$REV_VIDEO = "REVERSE VIDEO"
$RE_COLORS = "RESET COLORS"
$SYS_REQ = "SYSTEM REQUEST" ** an AID key mnemonic
$UNDER = "UNDERSCORE"
$TAB = "TAB"
$TURQ = "TURQUOISE"
$WHITE = "WHITE"
$YELLOW = "YELLOW"
$PF1 = "PF1" $PF8 = "PF8" $PF15 = "PF15" $PF22 = "PF22"
$PF2 = "PF2" $PF9 = "PF9" $PF16 = "PF16" $PF23 = "PF23"
$PF3 = "PF3" $PF10 = "PF10" $PF17 = "PF17" $PF24 = "PF24"
$PF4 = "PF4" $PF11 = "PF11" $PF18 = "PF18" $PA1 = "PA1"
$PF5 = "PF5" $PF12 = "PF12" $PF19 = "PF19" $PA2 = "PA2"
$PF6 = "PF6" $PF13 = "PF13" $PF20 = "PF20" $PA3 = "PA3"
$PF7 = "PF7" $PF14 = "PF14" $PF21 = "PF21"
EXAMPLE: K:GONEHOME$ENTER
Send the keystrokes G-O-N-E-H-O-M-E followed by the ENTER key.
HOSTKEYS Script Commands: (CON'T)
--------------------------------------------------------------------
L: -> LABEL
Format: L:LABEL NAME
EXAMPLE: L:TRY_NEXT
--------------------------------------------------------------------
P: -> PAUSE
Format: P:HALF SECONDS
HALF SECONDS = The number of half seconds to pause.
--------------------------------------------------------------------
S: -> Search 3270 screen for a string.
Format: S:ROW,COLUMN,'STRING',TIMER,LABEL
ROW = The row on the screen where to start search.
COLUMN = The column on the screen where to start search.
STRING = The string to search for, must be in single quotes.
TIMER = OPTIONAL: How long to continuously search for string.
Value is in 1/2 seconds. If not supplied will search
for string indefinitly. A value of 0 will search only
one time.
LABEL = OPTIONAL: Where to branch to if the string is not found
and the timer expires. If timer is supplied then this
parameter is required.
NOTE: The first screen postion is Row 1, Column 1
NOTE: The string is case sensitive (be sure to use the
appropriate case)
EXAMPLE: S:1,1,'Electronic Funds Transfer',20,NOMONEY
Search the 3270 screen for the string 'Electronic Funds
Transfer' starting at Row 1, Column 1 for a period of 10
seconds. If not found within 10 seconds, branch to the
the label NOMONEY.
--------------------------------------------------------------------
T: -> File Transfer
Format: T:TYPE,ACTUAL FILE TRANSFER COMMAND
TYPE = S for a SEND to HOST
R for a RECEIVE from HOST
ACTUAL FILE TRANSFER COMMAND = as defined by 3270 emulation
NOTE: The file transfer commands ( SEND and RECEIVE ) must be
copied into the directory where HOSTKEYS is installed.
EXAMPLE: T:S,c:autoexec.bat 'autoexec.bat.file' recfm(v)
Send the PC file autoexec.bat to the TSO dataset
'autoexec.bat.file' and store the file using a variable
record format.
HOSTKEYS Script Commands: (CON'T)
--------------------------------------------------------------------
W: -> WAIT
Format: W:
WAIT for XCLOCK or XSYSTEM.
NOTE: Should the host session remain in an infinite XCLOCK or
XSYSTEM state this command will not return.
--------------------------------------------------------------------
*: -> Comment
Format: *:Comments are placed here and will be displayed in PC
session screen or in the log if re-direction is in use.
FUTURE ENHANCEMENTS:
The following are planned enhancements for HOSTKEYS. If you are
a registered user, you will automatically receive upgrades as they
become available.
--------------------------------------------------------------------
I: -> I/O Processing
This command is useful for applications that require offline batching
of computer input data. The application can collect host input data
into a file which can be sent to the host at a later time. This is
very useful for remote and international sites where line costs
prohibit a constant online state.
Formats: I:O,FILENAME.EXT,MODE
I:W,FILENAME.EXT
I:R,FILENAME.EXT
I:C,FILENAME.EXT
O = Open a file using the mode specified.
W = Write 3270 Screen to the file.
R = Read from the file to the 3270 screen and send to host.
C = Close the file.
MODE C = Create (If file does not exist)
A = Append (Open to end of file)
T = Truncate (Open existing file as empty)
NOTE: You can open as many files as permitted by the system.
NOTE: Any files left open when the script terminates will
automatically be closed.
--------------------------------------------------------------------
E: -> Execute DOS process
This command allows you to execute batch files or PC programs.
Format: E:PROCESS.EXT,API
PROCESS.EXT = HOSTKEYS will have COMMAND.COM process
.BAT files, or will load and execute
.EXE and .COM programs.
API = Does DOS process uses HLLAPI? This allows HOSTKEYS
to determine if it needs to disconnect from the
HLLAPI session so the called program can use HLLAPI.
Y = Process USES HLLAPI.
N = Process does NOT USE HLLAPI.
HOSTKEYS SAMPLE SCRIPT:
A simple sample script file has been provided for your review.
A batch file that calls HOSTKEYS is also provided. These have
been included as a reference to show a script that works under a
specific environment.
The batch file: TSO.BAT
hostkeys tso.dat P B > tso.log
This allows the user to simply type TSO at the DOS prompt to
perform a TSO logon. NOTE: The symbol ">" is for re-directing
all messages from HOSTKEYS to the DOS file TSO.LOG. Use the
symbol ">>" to append to the log file for a running audit log.
The script file: TSO.DAT
1. K:$RESET
2. c:18,32,'OPTION',0,NO_VTAM
3. K:TSO$ENTER
4. C:1,12,'ENTER USERID',120,TIMEFAIL
5. K:YOUR_ID$ENTER
6. c:1,32,'SECRET PASSWORD(S)',120,TIMEFAIL
7. K:PASSWORD$ENTER
8. c:5,2,'***',120,TIMEFAIL
9. K:$ENTER
10. c:1,27,'ISPF/PDF',120,TIMEFAIL
11. K:END$ENTER
12. c:2,2,'READY',120,TIMEFAIL
13. c:18,32,'OPTION'
14. g:EXIT
15. L:NO_VTAM
16. *: Not at VTAM screen
17. g:EXIT
18. L:TIMEFAIL
19. *: Logon failure due to timeout
20. L:EXIT
NOTE: The numbering to the left is only used here as a reference.
Line 1. Although this will rarely be necessary, it is advised to
always start a script with a terminal reset command.
Line 2. For this particular host system, when the VTAM banner is
displayed it contains the string 'OPTION'. This command
will check for the string 'OPTION' one time (0 timer) and
branch to the label NO_VTAM if not found.
Line 3-12. These lines send keystrokes and check for screen
responses until the script reaches the TSO READY prompt.
Line 13. This command will check for the VTAM banner indefinitly!
This allows the user to perform TSO processing. When
a TSO logoff is performed the system will return to the
VTAM banner, and the script will continue.
Line 14-20. Exit and messages commands.
NOTE: This particular HOST system always has good response time.
Your particular scripts will need to be tailored to your
HOST response time. HOSTKEYS messages are very useful
for determining where, when, and how much to set timings
in your commands. In some cases you may need to call
the WAIT and/or PAUSE commands.
TECHNICAL NOTES:
This section contains information for successfully using HOSTKEYS.
* CERTIFICATION:
HOSTKEYS has been certified with the following 3270 products:
COMPANY PRODUCT
-----------------------------------------
ATTACHMATE EXTRA!
DCA IRMALAN
EICON ACCESS/SDLC
ICOT OMNI and KSAVER
PACKET PACKET/3270
RABBIT RABBITGATE
* CONNECTION TYPE:
The following is a partial vendor list for concurrent DOS support:
COMPANY PRODUCT CONCURRENT DOS SUPPORT
------------------------------------------------------------------
ATTACHMATE EXTRA! YES
DCA IRMALAN NO
EICON ACCESS/SDLC YES
ICOT OMNI and KSAVER NO
PACKET PACKET/3270 NO
RABBIT RABBITGATE YES
NOTE: Be sure to use the LOGICAL connection type "L" with
HOSTKEYS for the above vendor products that do not support
concurrent DOS.
NOTE: Some vendors allow you to set concurrent DOS support at
configuration time (i.e. Attachmate EXTRA!).
NOTE: You can always use the LOGICAL connection type even if your
3270 emulation has concurrent DOS support.
NOTE: Use the hotkey command "H:" when using a LOGICAL connection
to get to the 3270 session. When using the "H:" command with
emulation products that do not support concurrent DOS a manual
HOTKEY will need to be performed before HOSTKEYS will resume.
Here is a simple way to determine if your 3270 emulation has
an activated concurrent DOS session.
1. Pass the PHYSICAL "P" connection type to HOSTKEYS.
2. When HOSTKEYS executes, the PHYSICAL 3270 session will
appear on the screen.
3.A. If the 3270 session screen just stands there.
The DOS session is suspended and HOSTKEYS can not
continue processing the script.
You can now manually HOTKEY to the DOS session and
HOSTKEYS will resume execution. Timing issues may
give unexpected results, however; you will now know
to pass a LOGICAL connection type to HOSTKEYS.
3.B. If the 3270 session screen is being controlled by
HOSTKEYS then you know the DOS session is not
suspended, and concurrent DOS is supported.
NOTE: The above products are trademarks of their respective
companies.
TECHNICAL NOTES Con't:
* TIMING:
Successful scripting is very dependent on properly handling HOST
response times.
Setting timer values on certain HOSTKEYS commands is critical
to allow the HOST ample time to respond, but also to allow you to
determine script processing control. Depending on what the possible
HOST responses can be will determine what script commands should be
executed next.
Due to poor HOST response time, a HOSTKEYS command can have a
successful condition (i.e. the specified string WAS found at row X
column X) yet the 3270 session is still in an XCLOCK or XSYSTEM state.
NOTE: The following commands wait for XCLOCK or XSYSTEM up to 1 minute
after a successful condition.
C: Check 3270 screen for a string.
K: Send keystrokes to host.
S: Search 3270 screen for a string.
In some cases slow HOST response time will leave the 3270 session
in an XCLOCK or XSYSTEM state for longer than 1 minute.
The following message will be generated to indicate when this
condition has occured:
HLLAPI WAIT - Warning: Timed out while still in XCLOCK or XSYSTEM.
When more time is required for XCLOCK or XSYSTEM you can use the
WAIT "W:" command. The WAIT command will wait for XCLOCK or
XSYSTEM indefinitly.
NOTE: When refering to slow HOST response time, the terminology used
does not necessarily imply that the HOST system itself has poor
response time. Response time is affected by the network topology
and the type of connection to it (i.e. direct coax, SDLC dial-up
or leased line, LAN Gateway, Packet/Switched Network, etc).
* INTERACTIVE USER:
Successful scripting is very dependent on properly handling where
a user can leave a 3270 session when using HOSTKEYS to allow for
user interaction.
When using HOSTKEYS to allow a user interactive use of the 3270
session, the 3270 session may need to be left at a particular
screen for HOSTKEYS to continue processing. The sample script
provided is an example of using HOSTKEYS to allow user interaction.
* KNOWN ISSUES:
When using HOSTKEYS with ATTACHMATE EXTRA! sessions "D" and "E"
are not recognized, however; sessions "B" and "C" work fine.
Research and is currently underway to resolve these issues.